﻿@model InnoWeb.CEND.Core.Model.General.SliderContent


<div class="Anasayfa ortala">
    <div class="Slider">
        <img src="~/Images/Base/solOk.png" class="SolOk" alt="SolOk" />
        <img src="~/Images/Base/sagOk.png" class="SagOk" alt="SagOk" />
        <div class="kaydirak">
            <div class="SliderResim">
                <div class="text">
                    @{
                        string line1 = "", line2 = "", line3 = "", line4 = "";
                        string[] words;

                        string value = "";
                        if (this.Request.Cookies.AllKeys.Contains("_culture"))
                        {
                            if (this.Request.Cookies["_culture"].Value == "tr-TR")
                            {
                                value = ViewBag.MottoIndexTR;
                            }
                            else
                            {
                                value = ViewBag.MottoIndex;
                            }
                        }
                        else
                        {
                            if (UICulture == "tr-TR")
                            {
                                value = ViewBag.MottoIndexTR;
                            }
                            else
                            {
                                value = ViewBag.MottoIndex;
                            }
                        }

                        words = value.Split(' ');

                        for (int i = 0; i < words.Length; i++)
                        {
                            if (i <= 3)
                            {
                                line1 += " " + words[i];
                            }
                            else if (i > 3 && i <= 6)
                            {
                                line2 += " " + words[i];
                            }
                            else if (i > 6 && i <= 9)
                            {
                                line3 += " " + words[i];
                            }
                            else if (i > 9 && i <= 12)
                            {
                                line4 += " " + words[i];
                            }
                            else
                            {
                                break;
                            }
                        }
                    }

                    @if (!String.IsNullOrEmpty(line1))
                    {
                        <p style="color: white;">@line1</p>
                    }
                    @if (!String.IsNullOrEmpty(line2))
                    {
                        <p style="color: white;">@line2</p>
                    }
                    @if (!String.IsNullOrEmpty(line3))
                    {
                        <p style="color: white;">@line3</p>
                    }
                    @if (!String.IsNullOrEmpty(line4))
                    {
                        <p style="color: white;">@line4 ...</p>
                    }
@*@if (this.Request.Cookies.AllKeys.Contains("_culture"))
                    {
                        if (this.Request.Cookies["_culture"].Value == "tr-TR")
                        {
                        <p>@ViewBag.MottoIndexTR</p>    
                        }
                        else
                        {
                        <p>@ViewBag.MottoIndex</p>
                        }
                    }
                    else
                    {
                        if (UICulture == "tr-TR")
                        {
                        <p>@ViewBag.MottoIndexTR</p>    
                        }
                        else
                        {
                        <p>@ViewBag.MottoIndex</p>
                        }
                    }*@
                    <div class="linkler">
                        <div class="link1"><a href="@Url.Action("About")">@ViewBag.About</a></div>
                        <div class="link2">
                            <a href="@Url.Action("Projects", new { page = 1 })">@ViewBag.KickStart</a>
                        </div>

                    </div>
                </div>
                <img src="@Url.Content("~/Content/Images/Full/"+Model.ImageUrl1)" alt="SliderResim" class="" />
            </div>
            <div class="SliderResim">
                <img src="@Url.Content("~/Content/Images/Full/"+Model.ImageUrl2)" alt="SliderResim" class="" />
            </div>
            <div class="SliderResim">
                <img src="@Url.Content("~/Content/Images/Full/"+Model.ImageUrl3)" alt="SliderResim" class="" />
            </div>
            <div class="SliderResim">
                <img src="@Url.Content("~/Content/Images/Full/"+Model.ImageUrl4)" alt="SliderResim" class="" />
            </div>
        </div>
    </div>
</div>
